package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Title:
 * @BelongProjecet practice2
 * @BelongPackage com.bwie.pojo
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/7 9:22
 * @Version V1.0
 */
@Data
@TableName("tb_order")
public class TbOrder implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String orderNumber;
    private Integer orderFreight;//运费
    private Integer payId;
    @TableField(exist = false)
    private String payStatus;
    private Integer userId;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    private Integer shipmentsId;
    private Integer receiveId;
    private Integer orderStatus;
    private Integer statusId;
    @TableField(exist = false)
    private TbShipments tbShipments;
    @TableField(exist = false)
    private TbReceive tbReceive;
    @TableField(exist = false)
    private TbUser tbUser;
    @TableField(exist = false)
    private List<TbGoods> tbGoods;
    @TableField(exist = false)
    private String shipmentsName;
    @TableField(exist = false)
    private String shipmentsTel;
    @TableField(exist = false)
    private String shipmentsAddress;
    @TableField(exist = false)
    private String shipmentsDetails;
    @TableField(exist = false)
    private String receiveName;
    @TableField(exist = false)
    private String receiveTel;
    @TableField(exist = false)
    private String receiveAddress;
    @TableField(exist = false)
    private String receiveDetails;
    @TableField(exist = false)
    private String payName;
    @TableField(exist = false)
    private String userName;




}
